﻿function showTimes(chkField, cmbField1, cmbField2) {
    if (dnn.dom.getById(chkField).checked == true) {
        dnn.dom.getById(cmbField1).style.display = 'none';
        dnn.dom.getById(cmbField2).style.display = 'none';
    }
    else {
        dnn.dom.getById(cmbField1).style.display = 'inline';
        dnn.dom.getById(cmbField2).style.display = 'inline';
    }
}

function showPayment(chkField, cmbField1, cmbField2) {
    if (dnn.dom.getById(chkField).checked == true) {
        dnn.dom.getById(cmbField1).style.display = '';
        dnn.dom.getById(cmbField2).style.display = '';
    }
    else {
        dnn.dom.getById(cmbField1).style.display = 'none';
        dnn.dom.getById(cmbField2).style.display = 'none';
    }
}

function showImage(chkField, cmbField1, cmbField2, cmbField3) {
    if (dnn.dom.getById(chkField).checked == true) {
        dnn.dom.getById(cmbField1).style.display = '';
        dnn.dom.getById(cmbField2).style.display = '';
        dnn.dom.getById(cmbField3).style.display = '';
    }
    else {
        dnn.dom.getById(cmbField1).style.display = 'none';
        dnn.dom.getById(cmbField2).style.display = 'none';
        dnn.dom.getById(cmbField3).style.display = 'none';
    }
}